//
//  QDLocationManager.h
//  QDYY
//
//  Created by niyongsheng on 2022/9/30.
//

#import <Foundation/Foundation.h>
#import <AMapLocationKit/AMapLocationKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^QDLocationCompletionBlock)(NSString *address, NSString *latitude,NSString *longitude, NSError *error);

@interface QDLocationManager : NSObject

- (void)configLocation;

/// 单次定位
- (void)locAction;

/// 单次逆地理定位
- (void)reGeocodeAction;

/// 停止定位
- (void)cleanUpAction;

/// 定位结果
@property (nonatomic, copy) QDLocationCompletionBlock locationCompletionBlock;

- (BOOL)requestLocationWithReGeocode:(BOOL)withReGeocode completionBlock:(AMapLocatingCompletionBlock)completionBlock;
@end

NS_ASSUME_NONNULL_END
